package com.wuyou.designPatterns.factory.factoryMethod.idcard;

import com.wuyou.designPatterns.factory.factoryMethod.framework.Product;

public class IdCard extends Product {
    private String owner;

    public IdCard(String owner) {
        System.out.printf("制作[%s]的ID卡 \n", owner);
        this.owner = owner;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.printf("使用[%s]ID卡 \n", this.owner);
    }
}
